package com.typhoon.spring;

import redis.clients.jedis.JedisPool;
import redis.clients.jedis.JedisPoolConfig;

public class Test {

	public static void main(String[] args) {
		
		
		JedisPoolConfig config = new JedisPoolConfig();
		config.setMaxTotal(50);
		config.setMaxIdle(20);
		config.setMaxWaitMillis(1000 * 1);
		config.setTestOnBorrow(true);
		config.setTestOnReturn(true);
		JedisPool pool = new JedisPool(config, "119.23.232.185", 6379);
		byte[] rs = pool.getResource().get("a".getBytes());
		System.out.println(new String(rs));
	}
	
}
